<md-dialog aria-label="select image">
    <form name="staticForm" class="form-main">
        <md-toolbar>
            <div class="md-toolbar-tools">
                <h2>{/'Docker TCP Socket Addrs Required' | translate/}</h2>
                <span flex></span>
                <md-button id="node-dialog-nodeip-cancel" class="md-icon-button" ng-click="formCtrl.cancel()"
                           aria-label="cancel">
                    <i class="fa fa-close"></i>
                </md-button>
            </div>
        </md-toolbar>
        <md-dialog-content>
            <p>{/'Docker Daemon TCP Socket required' | translate/}</p>
            <p>{/'Enable Docker TCP Socket' | translate/}</p>
            <p>{/'Docker TCP Socket Addrs' | translate/}</p>
            <input id="node-nodeip-endpoint" type="text" name="endpoint" aria-label="endpoint" placeholder="http://192.168.59.105:2375"
                   data-ng-model="formCtrl.endpoint" data-required="required" md-autofocus>
            <div ng-messages="staticForm.endpoint.$error" ng-if="staticForm.endpoint.$dirty" role="alert">
                <p class="help-info text-danger" ng-message="required"><small>{/'Address Required' | translate/}</small></p>
            </div>
            <p>{/'How to configure Docker Daemon Socket Addrs' | translate/}</p>
            <p>CentOS/RHEL(systemd):</p>
            <p>{/'Edit the docker.service file' | translate/}</p>
            <p>ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:$DOCKER_TCP_SOCKET -H unix:///var/run/docker.sock</p>
            <p>{/'Save and Run Command' | translate/}</p>
            <code>systemctl daemon-reload && service docker restart</code>
            <p>Ubuntu(upstart):</p>
            <p>{/'Edit the docker file' | translate/}</p>
            <p>DOCKER_OPTS="-H tcp://0.0.0.0:$DOCKER_TCP_SOCKET -H unix:///var/run/docker.sock"</p>
            <p>{/'Save and Run Command' | translate/}</p>
            <code>service docker restart</code>
            <p><a href="https://docs.docker.com/engine/reference/commandline/dockerd/#/daemon-socket-option">参考链接</a>
            </p>
        </md-dialog-content>
        <md-dialog-actions layout="row">
            <md-button id="node-nodeip-cancel" ng-click="formCtrl.cancel()" aria-label="cancel">{/'Cancel' | translate/}</md-button>
            <md-button id="node-nodeip-ok" data-ng-disabled="staticForm.$invalid" data-ng-click="formCtrl.ok()" aria-label="ok"
                       class="md-primary">{/'Connect' | translate/}
            </md-button>
        </md-dialog-actions>
    </form>
</md-dialog>

